<template>
  <template v-if="auth.isAuth">
    <slot :user="auth.user" :logout="auth.logout"/>
  </template>
  <template v-else>
    <slot name="unauth" :login="auth.login"/>
  </template>
</template>
    
<script setup lang='ts'>
import { useAuth } from "~/store/modules/auth";

const auth = useAuth();
</script>
    
<style></style>